<?php

/**
 *  商品表
 */

namespace app\api\model;

use think\facade\Config;
use think\facade\Lang;

class ProductRelation extends BaseModel
{

    public function Inventory()
    {
        return $this->hasMany(Inventory::class, 'productid', 'pid');
    }

    public function Product()
    {
        return $this->hasOne(Product::class, 'id', 'pid');
    }
}
